#导入包

import numpy as np
import matplotlib.pyplot as plt

"""
 plot_images
 参数：
 -images
 -lables
 
"""

def plot_images(images, lables,class_names):
    fig, axes = plt.subplots(3, 5, figsize=(12, 6))

    axes = axes.flatten()

    for img, lbl, ax in zip(images, lables, axes):
        ax.imshow(img)
        ax.set_title(class_names[np.argmax(lbl)])
        ax.axis('off')

    plt.tight_layout()
    plt.show()




